package com.example.demo.pojo.properties;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Getter
@Setter
@ToString
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
public class AliyunOssProperties {
    private String accessKeyId;
    private String accessKeySecret;
    private String endpoint;
    private String bucketName;
    private String region;
    private String defaultPicture;

    public AliyunOssProperties() {
    }

    public AliyunOssProperties(String accessKeyId, String accessKeySecret, String endpoint, String bucketName, String region, String defaultPicture) {
        this.accessKeyId = accessKeyId;
        this.accessKeySecret = accessKeySecret;
        this.endpoint = endpoint;
        this.bucketName = bucketName;
        this.region = region;
        this.defaultPicture = defaultPicture;
    }
}
